import java.util.Scanner;

public class test3 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String a = in.next();
        String b = in.next();
        System.out.println(addBinary(a,b));
    }
    public static String addBinary(String a, String b) {
        //分别从两个的最后一个数进行相加
        int flag = 0;//表示进位
        StringBuilder stringBuilder = new StringBuilder();//往前加
        int n1 = a.length()-1,n2 = b.length()-1;
        while (n1>=0||n2>=0||flag!=0){
            if(n1>=0){
                flag+=a.charAt(n1)-'0';
                n1--;
            }
            if(n2>=0){
                flag+=b.charAt(n2)-'0';
                n2--;
            }
            stringBuilder.insert(0,flag%2);
            flag/=2;

        }
        return stringBuilder.toString();
    }
}
